import { BinaryDecision } from "framework/FSM/DecisionTree/Decision";
 
/**
 * 判断PC是否挂了
*/
export class DecisionIsLowerTTL <T extends IStateArg<PowerCreep>> extends BinaryDecision<T>
{

    public testValue(arg:T): boolean
    {
        if(arg.entity?.ticksToLive)
        {
            return  arg.entity.ticksToLive <100
        }
        return false;
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

